#!/bin/bash
#to be added
echo "ntpd mysqld httpd postfix saslauthd" > /tmp/chkconfig_enabled_services.list

for svc in `chkconfig --list | awk '{print $1}'`
do
        if [[ $(egrep -c "\b$svc\b" /tmp/chkconfig_enabled_services.list) -eq 1 ]]; then
                echo "chkconfig $svc on"
        else
                echo "chkconfig $svc off"
        fi
done

rm -f /tmp/chkconfig_enabled_services.list